package com.chenjt.jvm.first.six_methodArea;


/**
 * 注释：
 * 《深入理解Java虚拟机》中的案例
 * staticObj、instanceObj、localObj存放在哪？
 *
 * @author chenjt
 * @date 2025/6/11 11:10
 */
public class StaticObjTest {

    static class Test{
        static ObjectHolder staticObj = new ObjectHolder();
        ObjectHolder instanceObj = new ObjectHolder();

        void foo(){
            ObjectHolder localObj = new ObjectHolder();
            System.out.println("done");
        }
    }

    private static class ObjectHolder{
    }

    public static void main(String[] args) {

    }


}
